<%@ include file="/view/template/header.jsp"%>	
	<div id="content">
    	<%@ include file="/view/ehr/ehr_common.jsp"%>
        		<div class="right-content">
        		<%int p1; %>
        		<%int p2; %>
			<div class="box">
			 
				<h1>Merge Two Patients</h1>
				<s:form method="post" action="merge_patient_form">
				<div class="con-part"><span><s:label key="label.merge.patient1" cssClass="label_text"></s:label></span> 
				<s:textfield name="patientId1"  key="patientId1" class="input-text" cssErrorClass="error"></s:textfield> </div>
					<s:url action="merge_patient_search" var="merge_patient_search_action">
					
				</s:url>			
		
				<a href="${merge_patient_search_action}" class="green"><s:text name="merge.search.search_button"/></a>
				
					<div class="clear"></div>
					<div class="con-part"><span><s:label key="label.merge.patient2" cssClass="label_text"></s:label></span> 
					<s:textfield name="patientId2" key="patientId2" class="input-text" cssErrorClass="error"></s:textfield>  </div>
					
					<%-- <div class="con-part"><s:url action="merge_patient_search" var="merge_patient_search_action">
					<s:param name="patient_id1" value="%{merge_patient_patientId1.value}"/>
				<s:param name="patient_id1"><%out.println(patientId1);%></s:param> --%>
			<%-- 	</s:url>
				<a href="${merge_patient_search_action}" class="green"><s:text name="merge.search.search_button"/></a>
					</div> --%> 
					<div class="button_bar2">
					<s:submit cssClass="green" type="button" name="merge.merge_button"/>
					</div>
						<div class="clear"></div>
						<div class="button_bar2">
						<span>
						</span>
					</div>	
					
					
					<div class="con-part"><s:if test="%{message.message!=empty}">
							<s:property value="message.message" />
						</s:if>  </div>
				</s:form>
			</div>
			</div>
		</div>

	<%@ include file="/view/template/footer.jsp"%>
